class PageDomain:
    # __slots__ = ['pageNum', 'pageSize', 'sortField', 'sortOrder', 'queryParam']
    def __init__(self, pageNum, pageSize, orderBy: str = None, queryParam=None):
        self.pageNum = pageNum
        self.pageSize = pageSize
        self.orderBy = orderBy
        self.queryParam = queryParam

    def getStart(self):
        return (self.pageNum - 1) * self.pageSize


class PageResult(list):
    def __init__(self, total):
        super().__init__()
        self.total = total


if __name__ == '__main__':
    pageDomain = PageDomain(1, 10)
    print(pageDomain.__dict__)
